package com.wangbo.springmvc002.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity(name="MyName")
public class Name implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 742110150669661434L;
	private int id;
	private String name;
	@Id
	@Column(updatable = false, nullable = false, unique = true)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	
	public String getName() {
		return name;
	}
	@Column(nullable = false)
	public void setName(String name) {
		this.name = name;
	}

}
